/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-04-26
 * Time: 15:46
 */
public class TryCatchTest {
    public static void main(String[] args) {
        int a = 0;
        try{
            int b = 5 / a;
        } catch (ArithmeticException e) {
            System.out.println("异常：除数不能为0");
        }
        System.out.println("程序结束");

    }
}
